package com.yss.reportworld.mapper.kettle;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yss.reportworld.domain.kettle.EtlResource;
import org.springframework.stereotype.Component;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ETL资源注册Mapper接口
 *
 * @author yss
 * @date 2023-07-14
 */
@Component
public interface EtlResourceMapper extends BaseMapper<EtlResource> {

    /**
     * 资源信息导出EXECl
     *
     * @param wrapper
     * @return
     */
    public List<EtlResource> queryEtlResource(@Param(Constants.WRAPPER) QueryWrapper<EtlResource> wrapper);

    /**
     * 目标资源和来源资源
     *
     * @param jobId
     * @return
     */
    public List<EtlResource> queryTargetEtlResourceByJobId(@Param("jobId") String jobId);

    public List<EtlResource> querySouRceEtlResourceByJobId(@Param("jobId") String jobId);

}
